package struts.action;

public class IllegalPageOperationException extends RuntimeException
{
   private static final long serialVersionUID = -7067978715049826956L;

   // 错误消息ID
   private String messageId;

   // 错误消息参数
   private String[] args;


   /**
    * <p>
    * Constructor for IllegalPageOperationException
    * </p>
    * @param messageId 错误消息ID
    * @param args 错误消息参数
    */
   public IllegalPageOperationException( String messageId, String... args )
   {
       this.messageId = messageId;
       this.args = args;
   }


   public String getMessageId()
   {
       return messageId;
   }


   public void setMessageId( String messageId )
   {
       this.messageId = messageId;
   }


   public String[] getArgs()
   {
       return args.clone();
   }

}
